package com.wanlian.service;

import com.wanlian.common.PageCondition;
import com.wanlian.entity.DeviceData;
import com.wanlian.model.ResultModel;

import java.util.List;

public interface DeviceDataServices {
    /**
     * 添加
     *
     * @param deviceData
     * @return
     */
    ResultModel doAdd(DeviceData deviceData);

    ResultModel doAdd(List<DeviceData> deviceDatas);

    List<DeviceData> editBatch(List<DeviceData> deviceDatas);

    ResultModel queryByParam(PageCondition pageCondition);

    /**
     * 获取所有设备当天在线时长
     *
     * @return
     */
    List<DeviceData> queryAllData(String date);

     void doInsertsBatch( List<DeviceData> deviceDataList);


}
